package org.example.user.repository.User;

import org.example.user.entity.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserRepository {   //查询是否被占用
    User findUserByNameorEmail(User user);
    User findUserByEmail(@Param("UserEmail") String UserEmail);
    //注册
    public void register(User user);
    User getMySelf(@Param("Email")String Email);

    void updataUser(User user);
    //查找用户
    List<User> getUserList();

    //管理员登录
    User findUserByEmailAndPower(@Param("UserEmail") String UserEmail);

    //修改用户
    void updateUser (User user);
    String getUserInfo(String UserEmail);

    String getUserPicture(String userEmail);
}
